package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/4 15:37
 * @DESCRIBE 课程收藏表
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "course_collect")
public class CourseCollect extends Model {
    private Integer id;
    private Integer userId;   // 收藏用户
    @Ignore
    private User    user;

    private Integer courseId; // 收藏课程
    @Ignore
    private Course  course;

    private Integer exist;  // 该课程是否还存在 存在的意义包括是否是发布状态

    private String  time;     // 收藏时间
}